home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_02_01 / 2n01067a < prev    next >
Text File  |  1990-12-01  |  302b  |  21 lines

  1.  
  2. #include "sound.h"
  3.  
  4. void soundon(void)
  5. {
  6.         short value;
  7.  
  8.         value = inp(SCNTRL);
  9.         value |= SOUNDON;
  10.         outp(SCNTRL, value);
  11. }
  12.  
  13. void soundoff(void)
  14. {
  15.         short value;
  16.  
  17.         value = inp(SCNTRL);
  18.         value &= SOUNDOFF;
  19.         outp(SCNTRL, value);
  20. }
  21.